package com.education.common;

/**
 * @author 林心晨
 * @Title:
 * @Package
 * @Description:    响应前端的状态
 * @date create in 4.19  16:49
 */
public enum ResponseCode {
    SUCCESS(100,"success"),
    ERROR(101,"error"),
    NEED_LOGIN(102,"need_login"),
    ILLEGAL_PARAM(103,"illegal_param")
    ;


    private int code ;
    private String describe ;

    ResponseCode(int code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    ResponseCode(int code) {
        this.code = code;
    }

    ResponseCode(String describe) {
        this.describe = describe;
    }

    ResponseCode() {

    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
